﻿using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.Other;

/// <summary>
/// 活动列表
/// </summary>
public class SysActivityList : BasePoco
{
    [Required]
    [Display(Name = "活动名称", Description = "活动名称", GroupName = "基本信息")]
    [StringLength(128)]
    public string ActivityName { get; set; }

    [Required]
    [Display(Name = "开始时间", Description = "活动开始时间", GroupName = "基本信息")]
    public DateTime? StartTime { get; set; }

    [Required]
    [Display(Name = "结束时间", Description = "活动结束时间", GroupName = "基本信息")]
    public DateTime? EndTime { get; set; }

    [Required]
    [Display(Name = "活动状态", Description = "活动状态", GroupName = "基本信息")]
    public ActivityStatus? ActivityStatus { get; set; }

    //添加活动允许参加次数
    [Required]
    [Display(Name = "允许参加次数", Description = "允许参加次数", GroupName = "基本信息")]
    public int? MaxJoinCount { get; set; }

    /*[Display(Name = "二维码", Description = "活动二维码文件", GroupName = "基本信息")]
    [StringLength(128)]
    public string QrCode { get; set; }*/
}